package 动态规划9月;
//米加考试
public class Main8 {
    //n的阶乘
    public static  int fun(int n){
        int sum=1;
        for(int i=1;i<=n;i++){
            sum*=i;
        }
        return sum;
    }
    public static void main(String[] args) {
        System.out.println(fun(4));
    }
}
